<table cellspacing="0" cellpadding="0" align="center">
  <thead>
  <tr>
    <td width="20%">交易用户</td>
    <td width="25%">时间</td>
    <td width="15%">类型</td>
    <td width="15%">积分值</td>
    <td width="25%">动作</td></tr></thead>
  <tbody>
  	 #if($null.isNull($credits) || $credits.size()==0)
  	<tr>
    <td colspan="5">没有记录</td>
	</tr>
   #else
  #foreach($credit in $credits)
  <tr>
     #if($type=="incCredits")
    <td><a href="/members/$credit.fromuser">$credit.fromuser</a></td>
    <td>$!date.format("yyyy-MM-dd HH:mm:ss",$!credit.createtime)</td>
    <td>收入</td>
    <td>$!credit.credits</td>
    <td>$!credit.action</td>
	#else
	<td><a href="/members/$credit.userid">$credit.userid</a></td>
    <td>$!date.format("yyyy-MM-dd HH:mm:ss",$!credit.createtime)</td>
    <td>支出</td>
    <td>$!credit.credits</td>
    <td>$!credit.action</td>
	#end
	</tr>
    #end
	#end
</tbody></table>
#if($pageCount==1)
 #else
 #parse("/board/_pager.html")
 #end
 <script type="text/javascript">
	var pagesCount=$pageCount;
	var pageIndex=$pageIndex;
</script>
#includeJs(["jquery.jqpagination.min","favors/favors"])
#includeCss(["jqpagination"])